import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:youfangtong_module/widgets/my_colors.dart';

/// 消息页面
class MessagePage extends StatefulWidget {

  const MessagePage({super.key});

  @override
  State<StatefulWidget> createState() {
    return _MessagePageState();
  }

}

class _MessagePageState extends State<MessagePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.white,
        title: Text(
            "消息",
            style: TextStyle(
                fontSize: 17,
                fontWeight: FontWeight.bold,
                color: MyColors.color_222222
            )
        ),
        centerTitle: true,
        actions: [
          Row(
            children: [
              Image.asset("assets/images/icon_message_read.png",width: 17,height: 17),
              Padding(
                padding: const EdgeInsets.fromLTRB(5, 0, 20, 0),
                child: Text(
                  "一键已读",
                  style: TextStyle(
                    color: MyColors.color_222222,
                    fontSize: 15
                  ),
                ),
              )
            ],
          )
        ],
      ),
      body: Container(
        width: double.infinity,
        height: double.infinity,
        color: MyColors.color_F5F5F5,
        alignment: Alignment.center,
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            SvgPicture.asset("assets/images/icon_message_empty.svg",width: 90,height: 90),
            Text(
                "暂无消息",
            style: TextStyle(
              fontSize: 14,
              color: MyColors.color_999999
            ),
            )
          ],
        ),
      ),
    );
  }

}